package cn.itcast.service.system;

import cn.itcast.domain.system.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    PageInfo<User> findByPage(int page,int size,String companyId);
    User findById(String id);
    void deleteById(String id);
    void save(User user);
    void update(User user);

    List<String> findRolesByUid(String id);

    void changeRole(String userid, String[] roleIds);

    User findByEmail(String email);

    User findByNickname(String nickName);




    void updatePassWord(String id, String birthday, String email);

    void changePassword(User user);

}
